package com.jt.www.model.mail.dto;

import org.springframework.core.io.FileSystemResource;
import org.springframework.core.io.InputStreamSource;


/**
 * @author admin_ltf
 * @create 2019-06-12 20:06
 */

public class MailBean {

    /**
     * 收件人邮箱
     */

    private String email;


    /**
     * 邮件主题
     */
    private String subject;

    /**
     * 邮件内容
     */
    private String text;

    /**
     * 附件
     */

    private InputStreamSource file;
    private FileSystemResource file2;
    /**
     * 附件名称
     */
    private String attachmentFilename;
    private String attachmentFilename2;

    /**
     * 内容ID，用于发送静态资源邮件时使用
     */
    private String contentId;

    public static MailBean getMailBean() {
        return new MailBean();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public InputStreamSource getFile() {
        return file;
    }

    public void setFile(InputStreamSource file) {
        this.file = file;
    }

    public FileSystemResource getFile2() {
        return file2;
    }

    public void setFile2(FileSystemResource file2) {
        this.file2 = file2;
    }

    public String getAttachmentFilename() {
        return attachmentFilename;
    }

    public void setAttachmentFilename(String attachmentFilename) {
        this.attachmentFilename = attachmentFilename;
    }

    public String getAttachmentFilename2() {
        return attachmentFilename2;
    }

    public void setAttachmentFilename2(String attachmentFilename2) {
        this.attachmentFilename2 = attachmentFilename2;
    }

    public String getContentId() {
        return contentId;
    }

    public void setContentId(String contentId) {
        this.contentId = contentId;
    }
}
